
from PyQt5.QtCore import pyqtSignal, QObject
from PyQt5.QtCore import QThread

class MyObject(QThread):
    my_signal = pyqtSignal()
    def __init__(self):
        super(MyObject, self).__init__()
        self.my_signal.connect(lambda: print("Connected!"))

obj = MyObject()
obj.my_signal.emit()
while True:
    pass